package com.neusoft.yiyang.care.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.neusoft.yiyang.common.entity.care.CareRecord;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

public interface CareRecordService {

    // 查询护理执行记录
    List<CareRecord> getCareRecordsByCustomerId(Integer customerId);

    List<CareRecord> getCareRecordsByCaretakerId(Integer caretakerId);

    // 修改护理执行记录
    void updateCareRecord(
            Integer careRecordId,
            Integer careItemId,
            Integer caretakerId,
            Date careTime,
            Integer quantity,
            String feedback,
            String status,
            MultipartFile file
    );

    // 删除护理执行记录
    void deleteCareRecord(Integer careRecordId);

    // 多条件分页查询护理记录
    Page<CareRecord> pageQuery(Page<CareRecord> page,
                               String customerName,
                               String caretakerName,
                               Date startDate,
                               Date endDate,
                               String careItemName,
                               Integer caretakerId,
                               String status);

    // 获取所有护理记录
    List<CareRecord> getAllCareRecords();

    // 根据ID获取护理记录
    CareRecord getCareRecordById(Integer careRecordId);
}
